package org.jeecg.entity.meter;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.modules.system.entity.BaseEntity;

/**
 * @Description: 读表记录表
 * @Author: liurui
 * @Date:   2020-11-20
 * @Version: V1.0
 */
@Data
@TableName("meter_read")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="meter_read对象", description="读表记录表")
public class MeterRead extends BaseEntity  {
    
	/**扣费状态（0：未扣费  1：已扣费）*/
	@Excel(name = "扣费状态（0：未扣费  1：已扣费）", width = 15)
    @ApiModelProperty(value = "扣费状态（0：未扣费  1：已扣费）")
	private Integer closeStatus;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	private String tenantId ;
	/**初始状态(1:初始状态 0:普通状态)*/
	@Excel(name = "初始状态(1:初始状态 0:普通状态)", width = 15)
    @ApiModelProperty(value = "初始状态(1:初始状态 0:普通状态)")
	private Integer isBegin;
	/**线损*/
	@Excel(name = "线损", width = 15)
    @ApiModelProperty(value = "线损")
	private String loss;
	/**
	 * 是否更换倍率
	 */
	private Integer isRate;
	/**仪表id*/
	@Excel(name = "仪表id", width = 15)
    @ApiModelProperty(value = "仪表id")
	private String meterId;
	/**最新读数*/
	@Excel(name = "最新读数", width = 15)
    @ApiModelProperty(value = "最新读数")
	private String nowRead;
	/**当期用量*/
	@Excel(name = "当期用量", width = 15)
    @ApiModelProperty(value = "当期用量")
	private String nowUse;
	/**上一次读数*/
	@Excel(name = "上一次读数", width = 15)
    @ApiModelProperty(value = "上一次读数")
	private String preRead;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
	private String price;
	/**倍率*/
	@Excel(name = "倍率", width = 15)
    @ApiModelProperty(value = "倍率")
	private Integer rate;
	/**读表时间*/
	@Excel(name = "读表时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "读表时间")
	private Date readTime;
	@TableField(exist = false)
	private String meterKey;
	@TableField(exist = false)
	private Integer precision;
}
